﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    
    class Hero
    {
        private string heroName;
        private string heroInfo;
        private string name;
        private int gongji;
        private int fangyu;
        private int sudu;

        public string HeroName 
        { 
            get {return this.heroName; } 
            set { this.heroName = value ; } 
        }
        public string HeroInfo
        {
            get { return this.heroInfo; }
            set { this.heroInfo = value; }
        }
        public string Name
        {
            get { return this.name; }
            set { this.name = value; }
        }
        public int Gongji
        {
            get { return this.gongji; }
            set { this.gongji = value; }
        }
        public int Fangyu
        {
            get { return this.fangyu; }
            set { this.fangyu = value; }
        }
        public int Sudu
        {
            get { return this.sudu; }
            set { this.sudu = value; }
        }
        public void Print() 
        {
            Console.WriteLine(this.heroName+" "+this.heroInfo + " " +this.name + " " +"攻击:"+this.gongji + " " + "防御:" + this.fangyu + " " + "速度:" + this.sudu);
        }
    }
}
